#!/usr/bin/python
# -*- coding: UTF-8 -*-
from flask import request
# 获得蓝图接口
from App.getData import getdata
from venv.manger import selectData
import sys
reload(sys)
sys.setdefaultencoding('utf-8')

# 实例化selectData类
ss = selectData()



# 提交申请项目
@app.route('/api/appform', methods=["GET"])
def appPro():
    try:
        ss.cuu.execute(sql)
        ss.conn.commit()

        ss.cuu.execute(sql)
        rows = ss.cuu.fetchall()
        return json.dumps({
                "status": "success",
                # "data": {
                #     "total": total,
                #     "totals": totals,
                #     "data": dataSource
                # }
        })
    except Exception, e:
        return json.dumps({"status": "except", "msg": "异常"})





